import React from 'react'
import { HashRouter } from 'react-router-dom'
// ===================================================================== Lazy
const { $lazy } = window
const AppRouter 	= $lazy.load(()=>import('./router'))
const Toast 		= $lazy.load(()=>import('@tp/toast'))
const DataLoading 	= $lazy.load(()=>import('@tp/data-loading'))
// ===================================================================== 二级路由
const App = ( ) => (
	<>
		<HashRouter children={<AppRouter />}/>
		<Toast />
		<DataLoading />
	</>
)
export default App